package com.yuantong.xyerp.core.provider.service;

import com.yuantong.xyerp.core.api.dto.RoleDto;
import com.yuantong.xyerp.core.api.model.RoleMenu;
import com.yuantong.xyerp.core.api.service.IRoleMenuService;
import com.yuantong.xyerp.core.provider.dao.RoleMenuMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Jianguo.Yin on 2021-07-20.
 */
@Service
public class RoleMenuServiceImpl implements IRoleMenuService {

    @Resource
    private RoleMenuMapper roleMenuMapper;

    @Override
    public boolean savePatch(List<RoleMenu> list) {
        return roleMenuMapper.savePatch(list);
    }

    @Override
    public RoleMenu findOne(RoleDto roleDto) {
        return roleMenuMapper.findOne(roleDto);
    }
}
